#! /usr/bin/python3
# coding=utf-8
# @Time: 2023/11/14 10:55 上午
# @Author: william

class TopMenuBase:

    def right_top_user_avatar(self):
        """
        作业内容，右上角用户头像
        :return:
        """
        return "//img[contains(@src,'head_img')]"

    def dropdown_menu(self, menu_name):
        """
        作业内容，悬浮头像后下拉框
        :param menu_name:
        :return:
        """
        return "//li[text()='" + menu_name + "']"
